export const openOutsiteWeb = (url: string, params: Record<string, string | number> = {}) => {
  const paramsArr: string[] = [];
  Object.keys(params).forEach(key => {
    paramsArr.push(`${key}=${params[key]}`);
  });
  const str = paramsArr.join('&');
  const paramsStr = str ? `?${encodeURIComponent(str)}` : '';
  const _url = `${url}${paramsStr}`;

  window.open(_url);
};